<?php
/**
 * Created by PhpStorm.
 * User: Lebeyond
 * Date: 2020/9/22
 * Time: 15:14
 */
# --------------------------------
# 登录相关 不需要权限校验
# --------------------------------
Route::group('view/', function () {
    // 会员
    // Route::post('memberInfo', 'view/Member/memberInfo');
    // 创建
    // Route::post('goods/create', 'view/Goods/create');
    
})->middleware(['AdminAuth']);

# --------------------------------
# 不需要登录相关 不需要权限校验
# --------------------------------

use think\facade\Route;
Route::group('view/', function () {
    // 汉字列表
    Route::post('words/list', 'view/Yuwen/wordsList');
    // 获取 openId 
    Route::get('getOpenId', 'view/Home/getOpenId');
    // 获取 获取课程 
    Route::post('list', 'view/Goods/list');
    // 修改
    Route::post('/goods/update', 'view/Goods/update');
    // 创建
    Route::post('/goods/create', 'view/Goods/create');
    // 获取子分类 
    Route::post('detailed', 'view/Goods/detailed');
    // 获取分类 
    Route::post('category', 'view/Category/categoryList');
    // 获取子分类 
    Route::post('category/list', 'view/Category/category');
});